import 'package:flutter/material.dart';

class AddDetailPage extends StatefulWidget {
  final String addType;

  const AddDetailPage({super.key, required this.addType});

  @override
  State<AddDetailPage> createState() => _AddDetailPageState();
}

class _AddDetailPageState extends State<AddDetailPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("请添加${widget.addType}"),
      ),
      body: const Center(
        child: Text("balabala"),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          // 返回到上一层页面
          Navigator.pop(context);
        },
        child: const Icon(Icons.turn_left),
      ),
    );
  }
}
